package com.example.serviceorder.remote;

import com.example.internalcommon.dto.ResponseResult;
import com.example.internalcommon.response.TerminalResponse;
import com.example.internalcommon.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author lyra
 * @Date 2023/4/26 15:31
 **/
@FeignClient("service-map")
public interface ServiceMapClient {
    // terminal/aroundsearch
    @RequestMapping(method = RequestMethod.POST,value = "/terminal/aroundsearch")
    ResponseResult<List<TerminalResponse>> terminalAroundSearch(@RequestParam String center,@RequestParam Integer radius);

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/trsearch")
    ResponseResult<TrsearchResponse> trsearch(@RequestParam String tid,@RequestParam Long starttime ,@RequestParam Long endtime);
}
